<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0,user-scalable=no,minimal-ui">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../img/asset-favico.ico">
    <title>预约</title>
    <link rel="stylesheet" href="../css/page-health-order.css" />
</head>
<body data-spy="scroll" data-target="#myNavbar" data-offset="150">
<div class="app" id="app">
    <!-- 页面头部 -->
    <div class="top-header">
        <span class="f-left"><i class="icon-back" onclick="history.go(-1)"></i></span>
        <span class="center">传智健康</span>
        <span class="f-right"><i class="icon-more"></i></span>
    </div>
    <!-- 页面内容 -->
    <div class="contentBox">
        <H2>访问人数过多，请稍后访问</H2>
        <a href="index.html">两秒后跳转到主页，或者点击这里</a>
    </div>
</div>
<!-- 页面 css js -->
<script src="../plugins/vue/vue.js"></script>
<script src="../plugins/vue/axios-0.18.0.js"></script>
<!--<script src="../js/page-health-order.js"></script>-->
<link rel="stylesheet" href="../plugins/elementui/index.css">
<script src="../plugins/elementui/index.js"></script>
<script>
    setTimeout(function () {
        window.location.href="index.html"
    },2000)
    var vue = new Vue({
        el:'#app',
        data:{
            setmealList:[]
        },
        created (){
            this.findPage();
        },
        methods:{
            findPage(){
                axios.get("/setmeal/findAllSetmeal").then((res)=>{
                    if(res.data.flag){
                        if (res.data.data )
                        this.setmealList=res.data.data;
                        this.$message.success("查询 成功！");
                    }else{
                        if (res.data.message=="timeOut"){
                            this.$message.error("访问人多过多，请稍后再点击");
                            window.location.href="error.html";
                        }
                        this.$message.error(res.data.message);
                    }
                })
            }
        }
    });
</script>
</body>
